﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_manageTeacher.aspx.cs" Inherits="scmsByAspdNet.Admin_manageTeacher" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学生选课系统-管理员界面-教师管理</title>
    <link rel="stylesheet" href="static/bootstrap-4.6.0/css/bootstrap.css" />
    <link rel="stylesheet" href="static/css/Admin_manageTeacher.css" />
    <script src="static/js/jquery-3.6.0.js"></script>
    <script src="static/js/jquery-3.6.0.min.js"></script>
</head>
<body>
    <%-- 导航栏 --%>
    <div class="nav-warp">
        <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
            <a class="navbar-brand" href="Admin.aspx">学生选课系统管理员界面</a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav mr-auto">
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-expanded="false">更多功能
                        </a>
                        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                            <a class="dropdown-item" href="#">相关信息</a>
                            <a class="dropdown-item" href="#">关于我们</a>
                            <div class="dropdown-divider"></div>
                            <a class="dropdown-item" href="#">版本有关</a>
                        </div>
                    </li>
                </ul>
                <ul class="navbar-nav ml-auto">
                    <li class="nav-item">
                        <a id="sign-out" class="nav-link" href="./Login.aspx" tabindex="-1" aria-disabled="true" style="color: red;">退出登录</a>
                    </li>
                </ul>
                <form class="form-inline my-2 my-lg-0">
                    <input class="form-control mr-sm-2" type="search" placeholder="没有任何功能" aria-label="Search" />
                    <button class="btn btn-outline-success my-2 my-sm-0 loginSubmit" type="submit">Search</button>
                </form>
            </div>
        </nav>
    </div>
    <%-- 教师表 --%>
    <div class="teacher-list-warp">
        <div class="list-title">
        </div>
        <table class="teacher-warp table ml-4 mb-3" style="width: 1200px; margin: 0 auto">
            <thead>
                <tr>
                    <th scope="col">教师号</th>
                    <th scope="col">姓名</th>
                    <th scope="col">性别</th>
                    <th scope="col">职称</th>
                    <th scope="col">所属学院</th>
                    <th scope="col">所教课程</th>
                    <th scope="col">详细信息</th>
                </tr>

            </thead>
        </table>
    </div>
    <%-- 教师-课程模态框 --%>
    <div class="modal fade" id="teacherCourseModal" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="teacher-course-model-title">详细信息</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body" id="teacherCourse-modal">
                    <table class="table" id="teacherCourse-table">
                    </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-success" onclick="addTeacherCourse()" tabindex="-1" aria-disabled="true" data-toggle="modal" data-target="#showCourseModal">选择关联课程</button>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>
    <%-- 显示需要添加课程模态框 --%>
    <div class="modal fade" id="showCourseModal" data-backdrop="static" data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="show-course-model-title">详细信息</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body" id="showCourse-modal">
                    <table class="table" id="showCourse-table">

                    </table>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-success" onclick="confimAddTeacherCourse()">添加关联课程</button>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>
</body>
<script src="static/bootstrap-4.6.0/js/bootstrap.js"></script>
<script src="static/js/Admin_manageTeacher.js"></script>
</html>
